]> dgit.raspbian.org Git - gnome-shell.git/commit
ScreenShield: don't reset the lock screen animation if it's already happening
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 29 Dec 2012 14:25:03 +0000 (15:25 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 30 Dec 2012 00:39:24 +0000 (01:39 +0100)
commita757ce48a14e987814ccc23de742a4e4aaebcade
treec3cb354f70c20724f1779a4044ca470258f567b3
parent507f29a7bd673fd9e34f326ad96651bf0eda037c
ScreenShield: don't reset the lock screen animation if it's already happening

When you click Suspend from the user menu, the following things happen:
- we lock the screen internally by calling Main.screenShield.lock() and waiting
  for lock-screen-shown
- logind emits a Lock signal, which causes us to lock again
- gnome-settings-daemon notices PrepareForSleep, and calls org.gnome.ScreenSaver.Lock,
  just in case, so we lock once more
This means that, if you're lucky, you can see the curtain fall down multiple times,
as each .lock() call resets the animation.

https://bugzilla.gnome.org/show_bug.cgi?id=690858
js/ui/screenShield.js